/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AIproccess;

import Army.ComputerTeam;
import GameObject.LayerManager;

/**
 *
 * @author Huy
 */
public class AIManagerPro extends AIManager{
	public AIManagerPro(LayerManager lm) {
		layer = lm;
		int n = layer.getListTeam().length;
		
		developers = new PlayerAIDevelope[n - 1];
		attackers = new PlayerAIActack[n - 1];
		int k = 0;
		for (int i = 0; i < n; i++) {
			
			if (!layer.getListTeam()[i].isIsControled()) {
				developers[k] = new PlayerAIDevelopPro(layer, (ComputerTeam) layer.getListTeam()[i]);
				attackers[k] = new PlayerAIAttackPro(layer, (ComputerTeam) layer.getListTeam()[i]);
				k++;
			}
		}
	}
}
